#include <interfacelib/window/staticBox.h>

using namespace interfacelib::Window;

StaticBox::StaticBox() : m_text( NULL )
{
}

StaticBox::~StaticBox()
{
	SAFE_DELETE_ARRAY( m_text );
}

void StaticBox::draw( Window *window )
{
	if ( !isVisible() ) return;
	Window::draw( window );
	{
		RECT rect = { 0 , 0 , 0 , 0 };
		rect.right = getWidth();
		rect.bottom = getHeight();
		
		drawText( &rect, m_text );
	}
}

void StaticBox::setText( char *text )
{
	COPY_STRING( m_text, text );
}
